import request from '@/utils/request'

export default {
  // /addrbook/add/{fenLei}
  // 新增
  save(data,fenLei) {
    return request({
      url: `/addrbook/add/${fenLei}`,
      method: 'post',
      data
    })
  },
  // /addrbook/index
  // 个人通讯录列表
  list(page) {
    return request({
      url: `/addrbook/index`,
      method: 'get',
      params: { pageIndex: page.index, pageSize: page.size }
    })
  },
  // /addrbook/list
  // 更多电话微信等列表配置项
  otherList() {
    return request({
      url: `/addrbook/list`,
      method: 'get',
    })
  },

}
